# P294-P295
# 拆分字符串
poem_string = "客至 \n[唐] 杜甫 \n舍南舍北皆春水，但见群鸥日日来。\n花径不曾缘客扫，蓬门今始为君开。\n盘飧市远无兼味，樽酒家贫只旧醅。\n肯与邻翁相对饮，隔篱呼取尽馀杯。"
poem_lists = poem_string.split("\n")
for value in poem_lists:
    print("%s\t" % value.lstrip().center(20, " "))

# 合并字符串
print("-".join(poem_lists))
